<template>
    <div id="reception-details">
        <Title title="接待详情"/>
        <div v-if="flag">
            <uEditor :comment="item"/>
        </div>

    </div>
</template>

<script>
    import Title from "@/components/title/Title";
    import uEditor from "@/components/uEditor/uEditor";
    import {post} from "../../../../request/AxiosMAX";
    export default {
        name: "ReceptionDetails",
        components: {
            Title,
            uEditor
        },
        data(){
            return {
                flag:false,
                item:{}
            }
        },
        //生命周期函数
        created() {
            //封装需要的参数
            let data = {
                baseId:this.$store.state.base.id,
                descriptionType:3//基地概述描述类型指定为1
            };
            //发生psot请求
            post("/api/Studies_to_travel/overview/queryByBaseIdAndDescriptionType",data)
                .then(res=>{
                    if (res.code===0){
                        this.item = res.data;
                        this.flag = true;
                    }
                });
        }
    }
</script>

<style scoped>

</style>
